package NBN.nbndemo01;

public class Car {
     String carname;
     int carAge;
     String carColor;
    public void show(Car this){
        //打印的是调用者车的名字:宾利
        System.out.println(this.carname);
        Engine e = new Engine();
        e.engineAge=1;
        e.engineName="保时捷";
        System.out.println(e.engineAge);
    }
    class Engine {
        String engineName;
        int engineAge;

        public void show() {
            System.out.println(engineName);
            System.out.println(carColor);
        }
    }
}
